package io.bba.boot.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 仅用户忘记密码使用
 */

@Data
@Schema(description = "忘记密码用户参数")
public class SysUserForgetPwdDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "手机号码")
    @Length(max = 11, message = "手机号码长度超过限制")
    private String phone;

    @Schema(description = "身份证号")
    @Length(max = 18, message = "身份证号长度超过限制")
    private String idCard;

    @Schema(description = "电子邮件")
    @Length(max = 255, message = "电子邮件长度超过限制")
    private String email;


}
